package org.dromara.hrp.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("hrp_lead_comment")
public  class HrpLeadComment implements Serializable {
  @Serial
  private static final long serialVersionUID = 1L;

  @ExcelProperty(value = "id")
  @NotNull(message = "id不能为空", groups = {EditGroup.class})
  @TableId(value = "id")
  private Long id;

  @ExcelProperty(value = "阶段")
  private String stage;

  @ExcelProperty(value = "备注")
  @ExcelDictFormat(dictType = "hrp_lead_comment")
  private String remark;

  @ExcelProperty(value = "创建者")
  private Long createBy;

  @ExcelProperty(value = "创建者昵称")
  private String nickName;

  @ExcelProperty(value = "创建时间",converter = ExcelDictConvert.class)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @ExcelProperty(value = "创建部门")
  private Long createDept;

}
